package zhai.git;

public class Static {

    static {
        System.out.println("Main类被加载");
    }
    public static void main(String[] args) {
        System.out.println(System.getProperties());
    }
}
class Father {
    static {
        System.out.println("父类被加载");
    }
    static int id = 2;
}
class Son extends Father {
    static {
        System.out.println("子类被加载");
        pid = 2;
    }
    static int pid = 1;
    static final int P = 10;
}